package com.bwie.controller;

import com.bwie.common.pojo.dto.UserDto;
import com.bwie.common.result.Result;
import com.bwie.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AuthController {
    @Autowired
    private AuthService authService;
    @PostMapping("login")
    public Result login(@RequestBody UserDto userDto){
        return authService.login(userDto);
    }
}
